package org.nf.shopping.service;

import com.github.pagehelper.PageInfo;
import org.nf.shopping.entity.Commodity;

import java.util.List;

/**
 * @Author czl
 * @Date 2024-12-18
 */
public interface CommodityService {
    PageInfo<Commodity> listCommodity(Integer pageSize,Integer pageNum,String name);

    void updateCommodity(Commodity commodity);

    void deloneCommodity(Integer id);

    void  addCommodity(Commodity commodity);

    List<Commodity> getCommodityList();
}
